import request from '@/utils/request'

export function getDocumentDistributionPage(params) {
  return request({
    url: '/api/document-distribution/page',
    method: 'get',
    params
  })
}

export function getDocumentDistributionDetail(id) {
  return request({
    url: `/api/document-distribution/${id}`,
    method: 'get'
  })
}

export function saveDocumentDistribution(data) {
  return request({
    url: '/api/document-distribution/save',
    method: 'post',
    data
  })
}

export function deleteDocumentDistribution(id) {
  return request({
    url: `/api/document-distribution/${id}`,
    method: 'delete'
  })
} 